package com.didispace.domain;

import org.springframework.cache.annotation.CacheConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;


/**
 * @author 程序猿DD
 * @version 1.0.0
 * @date 16/3/23 下午2:34.
 * @blog http://blog.didispace.com
 */
@Component
@CacheConfig(cacheNames = "rqsinfors")
public interface rqsinforRepository extends JpaRepository<rqsinfor, Long> {
		
	// rqsinfor findByMethod_name(String MethodName);
	
	 @Query("from rqsinfor r where r.method_name=:method_name")
	 rqsinfor findrqsinfor(@Param("method_name") String method_name);

}
